package com.pet.cloud.order.api.queryHandler.impl;

import com.pet.cloud.order.api.queryHandler.OrderQueryHandler;
import com.pet.cloud.order.api.view.OrderInfo;
import com.pet.cloud.order.infrastructure.service.PrimaryOrderService;
import com.pet.cloud.order.infrastructure.service.SubOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderQueryHandlerImpl implements OrderQueryHandler {

    @Resource
    private PrimaryOrderService primaryOrderService;

    @Resource
    private SubOrderService subOrderService;


    @Override
    public OrderInfo getOrderInfo(String orderNo) {

        // select primary_order db

        // select sub_order db

        return new OrderInfo();
    }
}
